package com.futureCloudMOM.core.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.futureCloudMOM.core.entity.FBaseEntity;
import com.futureCloudMOM.framework.dict.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Basic_GroupEmp", description = "班组员工信息")
@TableName(value = "Basic_GroupEmp")
public class BasicGroupEmp extends FBaseEntity implements Serializable {



    @NotNull(message="[班组Id]不能为空")
    @ApiModelProperty("班组Id")
    @TableField(value = "groupId")
    private Long groupId;

    @NotNull(message="[员工]不能为空")
    @ApiModelProperty("员工")
    @TableField(value = "employeeId")
    private Long employeeId;

    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("备注")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "remark")
    private String remark;

    @NotNull(message="[状态]不能为空")
    @ApiModelProperty("状态")
    @TableField(value = "status")
    @Dict(dictCode = "sys_normal_disable")
    private Long status;






}

